package com.work.dto.builder;

import java.util.Date;

import com.work.dto.TaskDto;
import com.work.model.builder.Builder;

/**
 * The Class TaskDtoBuilder.
 *
 * @author "Mihai Roman"
 */
public class TaskDtoBuilder extends Builder<TaskDto>{

	/**
	 * With id tasks.
	 *
	 * @param dtoIdTasks the dto id tasks
	 * @return the task dto builder
	 */
	private TaskDtoBuilder withIdTasks(int dtoIdTasks) {
		build().setDtoIdTasks(dtoIdTasks);
		return this;
	}
	
	/**
	 * With created by.
	 *
	 * @param dtoCreatedBy the dto created by
	 * @return the task dto builder
	 */
	private TaskDtoBuilder withCreatedBy(int dtoCreatedBy) {
		build().setDtoCreatedBy(dtoCreatedBy);
		return this;
	}
	
	/**
	 * With creation date.
	 *
	 * @param dtoCreationDate the dto creation date
	 * @return the task dto builder
	 */
	private TaskDtoBuilder withCreationDate(Date dtoCreationDate) {
		build().setDtoCreationDate(dtoCreationDate);
		return this;
	}
	
	/**
	 * With end date.
	 *
	 * @param dtoEndDate the dto end date
	 * @return the task dto builder
	 */
	private TaskDtoBuilder withEndDate(Date dtoEndDate) {
		build().setDtoEndDate(dtoEndDate);
		return this;
	}
	
	/**
	 * With status.
	 *
	 * @param dtoStatus the dto status
	 * @return the task dto builder
	 */
	private TaskDtoBuilder withStatus(int dtoStatus) {
		build().setDtoStatus(dtoStatus);
		return this;
	}
	
	/**
	 * With updated by.
	 *
	 * @param dtoUpdatedBy the dto updated by
	 * @return the task dto builder
	 */
	private TaskDtoBuilder withUpdatedBy(int dtoUpdatedBy) {
		build().setDtoUpdatedBy(dtoUpdatedBy);
		return this;
	}
	
	/**
	 * With updated date.
	 *
	 * @param dtoUpdatedDate the dto updated date
	 * @return the task dto builder
	 */
	private TaskDtoBuilder withUpdatedDate(Date dtoUpdatedDate) {
		build().setDtoUpdatedDate(dtoUpdatedDate);
		return this;
	}
	
	/**
	 * With user.
	 *
	 * @param dtoUser the dto user
	 * @return the task dto builder
	 */
	private TaskDtoBuilder withUser(int dtoUser) {
		build().setDtoUser(dtoUser);
		return this;
	}
	
}
